﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using RoadTeam.Enums;
using System.Reflection;

namespace RoadTeam.SysInterface
{


    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.IPcDict _iPcDict = null;

        public static IPcDict CreatePcDict()
        {
            if (_iPcDict == null)
            {
                string className = GlobalConfig.RtSystemPath + ".PC.PcDict_Sys";
                _iPcDict = (IPcDict)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iPcDict;
        }
    }
    public interface IPcDict
    {
        DataTable GetDict(String DictType);

        DataTable GetDictIdentifierNotNull(String DictType);

        DataTable GetDictIdentifierNull(String DictType);

        bool Update(DataTable dt);
    }
}
